package com.enzoism.springboot.dive.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long userId;
    private Long roleId;
    private String username;
    private String email;
    private String phone;
    private Integer status;
    private String createTime;

    // 构建复合key的方法
    public String getCompositeKey() {
        return userId + "_" + roleId;
    }
}
